package cn.liang.hadoop.maxtemperature;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(
                new FileReader("/home/liang/WorkSpace/IDEA/Projects/Hadoop/input/1901"));

        String line = reader.readLine();
        String airtemp = line.substring(88, 92);
        String quality = line.substring(92, 93);
        if(airtemp.equals("9999")) {
            System.out.println(line);
        }
        if(quality.matches("[01459]")) {
            System.out.println(line);
        }
        reader.close();
    }

}
